package common

import (
	"github.com/astaxie/beego/cache"
	"github.com/astaxie/beego/logs"
)

var selfCache cache.Cache

func InitCacheConfig() {
	bm, err := cache.NewCache("memory", `{"interval":60}`)
	if err != nil {
		panic("init cache config error")
	}
	logs.Info("init cache config success")
	selfCache = bm

}
